package ping;

import ping.common.Command;
import ping.server.Server;

/**
 * 服务端启动类 
 */
public class PingServer {
	public static void main(String[] args) {
		int port = Command.getPort(args);
		if (port == -1) {
			System.exit(0);
		}
		Server server = new Server(port);
		server.start();
	}
}
